var height = argument0;
var width = argument1;
var corridorSize = argument2;
var seed = argument3;

var graph;

for(var i = height - 1; i >= 0; i--)
{
    for(var j = width - 1; j >= 0; j--)
    {
        graph[i, j] = 0;
    }
}

graph = growingTree(graph, corridorSize, seed);
graph = markFinish(graph);
graph = pruneTree(graph);
graph = markRooms(graph);
return graph;
// 0 = wall
// 1 = path
// 2 = start
// 3 = finish
// 4 = room
// 5 = vertex
